package com.yys.apm.model;

import com.yys.apm.utils.ApmAgentUtil;


/**
 * @author Yingsheng Ye
 * @date 2021-03-23 15:35
 */
public class HeartbeatInfo {

    //应用ID
    private String appId;

    //主机地址
    private String hostIp = ApmAgentUtil.getHostIp();

    //主机名称
    private String hostName = ApmAgentUtil.getHostName();

    //记录信息
    private String msg;


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    @Override
    public String toString() {
        return "HeartbeatInfo{" +
                "appId='" + appId + '\'' +
                ", hostIp='" + hostIp + '\'' +
                ", hostName='" + hostName + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
